package com.rul.mars.auth.service;

import com.rul.mars.common.domain.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author RuL
 */
@FeignClient("mars-user")
public interface UserService {
    @GetMapping("/user/loadByUsername")
    UserDto loadByUsername(@RequestParam(value = "username") String username);
}
